/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-02-22
 * Time:14:05
 */
public class Text {
    public static void main(String[] args) {
        int[] array=new int[]{2,4,6,8,10,12,14,16,18,20};
        int[] c=halfArray(array);
        for (int i = 0; i <10 ; i++) {
            System.out.print(c[i]+"  ");
        }
    }
    public static int[] halfArray(int[] array)
    {
        int[] a=new int[10];
        for (int i = 0; i < 10; i++) {
            a[i]=array[i]/2;
        }
        return a;
    }
}
